<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/> 
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}

function action_form(url) {
    $("#report_form").attr("action", url);
    $("#report_form").submit();
}

</script>
</head>
<body>
<div class="box-positon">
    <form action="" method="post" style="padding-top:5px;" id="report_form">
        <div>
            配送点: <@p.select name="disAddId" value="${disAddId!}" list=disAddress headerKey="" listKey="id" listValue="address"  headerValue="全部"/>
            <!-- <@p.checkbox name="status" value="1"/>待发货
            <@p.checkbox name="status" value="2"/>待收货
            <@p.checkbox name="status" value="3"/>已收货
            <@p.checkbox name="status" value="4"/>已取消 -->
            订单类型：<@p.select name="typeId" value="${typeId!}" list={"":"全部","0":"普通","1":"拼单","2":"秒杀","3":"VIP商品","4":"在线充值"}/>
            开始时间：<input type="text" name="startTime" value="${startTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
            结束时间：<input type="text" name="endTime" value="${endTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
            <input type="button" value="销售量报表" onclick="action_form('to_sale_count_dis.do')"/>
            <!-- <input  type="button" value="销售额报表" onclick="action_form('to_sale_money_dis.do')"/> -->
            <input type="button" value="查询" onclick="action_form('to_sale_money_dis_view.do')"/>
        </div>
    </form>
    <#if pagination??>
        <form action="to_sale_money_dis_view.do" id="tableForm" method="post" id="tableForm">
            <@p.table value=pagination;report,i,has_next><#rt/>
                 <@p.column code="序号">${report.id!}</@p.column><#t/>
                 <@p.column code="配送点">${report.peisongdian!}</@p.column><#t/>
                 <@p.column code="商品名称">${report.productName!}</@p.column><#t/>
                 <@p.column code="规格">${report.skuName!}</@p.column><#t/>
                 <@p.column code="单价（元）">${report.price!}</@p.column><#t/>
                 <@p.column code="数量">${report.orderNum!}</@p.column><#t/>
                 <@p.column code="金额（元）">${report.money!}</@p.column><#t/>
            </@p.table>
        </form>
    </#if>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>